#ifndef __SED1315_H__
#define __SED1315_H__

#include <reg52.h>
#include <intrins.h>

#define OLED_CMD 0
#define OLED_DATA 1
#define point8_mode 1

sbit OLED_SDA=P2^0;
sbit OLED_CLK=P2^1;

extern void OLED_Init(void);
extern void Send_Byte(unsigned char dat);
extern void OLED_Clear(void);
//extern void OLED_ShowString(unsigned char x, unsigned char y, unsigned char *p, unsigned char size);
extern void OLED_Display_16x8(unsigned char x, unsigned char y, unsigned char *dp);
extern void OLED_address(unsigned char x, unsigned char y);
extern void OLED_WR_Byte(unsigned char dat, unsigned char mode);
extern void OLED_ShowString(unsigned char row, unsigned char cloum, unsigned char *p);
extern void OLED_Show8X16(unsigned char x,unsigned char y,unsigned char num);
extern void OLED_Scroll_Start(void);
extern void OLED_Scroll_Stop(void);
extern void OLED_Scroll_ManualStop(unsigned char StartPage,unsigned char EndPage);
extern void OLED_Scroll_Continuous(unsigned char StartPage,unsigned char EndPage);
extern void OLED_ClearOneSEG(unsigned char ROW);
extern void OLED_ShowChinese16x16(unsigned char x, unsigned char y, unsigned char chrnum);
extern void OLED_ShowChineseString(unsigned char row, unsigned char cloum,unsigned char charStartnum, unsigned char num);
extern void NumToChar(unsigned char *p,unsigned int zl);
         
